<!DOCTYPE html>
<%
  request.setCharacterEncoding("UTF-8");
%>
<%@ page import="com.youtills.core.lang.StringUtil" %>
<%--
  Created by IntelliJ IDEA.
  User: ravic
  Date: 5/18/13
  Time: 3:40 PM
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/WEB-INF/jsp/common/taglibs.jsp"%>
<%--@elvariable id="layout" type="com.youtills.core.app.common.SiteLayout"--%>
<html>
<head>
    <meta name="google-site-verification" content="CqwtAFBKztX6o4bBZV2dBE80pvMN0HR7bikwJM7gZLo" />
    <title>Youtills.com ${layout.title}</title>
    <script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/app.js"></script>

    <%--<link rel="shortcut icon" href="${pageContext.request.contextPath}/images/common/favicon.ico" type="image/x-icon" />--%>

    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/app.css"/>
    <script>
        (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
            (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
                m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
        })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

        ga('create', 'UA-40968297-1', 'youtills.com');
        ga('send', 'pageview');

    </script>

</head>
<body>
<header>
    <div class="header">
        <a rel="home" href="//www.youtills.com">
            <hgroup>
                <h1>Youtills.com</h1>
                <h2>Utilities, tools and useful things for you.</h2>
            </hgroup>
        </a>
    </div>
</header>
<nav>
    <div class="nav">
        <div class="nav-links">
            <ul>
                <li><a href="/">Home</a></li>
                <li><a>Development</a></li>
                <li><a>Calculators</a></li>
            </ul>
        </div>
    </div>
</nav>
<div class="content">

    <table>
        <tr>
            <td class="main-content">
                <div id="main-content">
                    <%
                        if(StringUtil.getBoolean(System.getProperty("show.adds"), true)){
                    %>

                                        <div id="main-top-ad">
                                            <script type="text/javascript"><!--
                                            google_ad_client = "ca-pub-9816884447357963";
                                            /* www.youtills.com-top */
                                            google_ad_slot = "6820973512";
                                            google_ad_width = 728;
                                            google_ad_height = 90;
                                            //-->
                                            </script>
                                            <script type="text/javascript"
                                                    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
                                            </script>
                                        </div>
                    <% } else { %>
                    <div style="width:728px; height: 90px;" class="addBlock">Top ADD </div>
                    <% } %>

                    <div id="main-page-content">
                        <c:if test="${!empty layout.mainContentPage}">
                        <jsp:include page="${layout.mainContentPage}"/>
                        </c:if>
                    </div>
                </div>
            </td>
            <td class="right-content">
                <div id="right-content">

                    <%
                        if(StringUtil.getBoolean(System.getProperty("show.adds"), true)){
                    %>
                    <div id="right-top-ad">
                        <script type="text/javascript"><!--
                        google_ad_client = "ca-pub-9816884447357963";
                        /* www.youtills.com-right */
                        google_ad_slot = "5344240317";
                        google_ad_width = 250;
                        google_ad_height = 250;
                        //-->
                        </script>
                        <script type="text/javascript"
                                src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
                        </script>
                    </div>
                    <% } else {%>
                    <div style="width:250px; height: 250px;" class="addBlock">Right ADD </div>
                    <% } %>
                    <div id="right-page-content">
                        <c:if test="${!empty layout.rightContentPage}">
                        <jsp:include page="${layout.rightContentPage}"/>
                        </c:if>
                    </div>
                </div>

            </td>
        </tr>
    </table>
</div>
<footer>
    <div class="footer">&copy;Youtills.com</div>
</footer>
</body>
</html>